#
# $Id$
#
# :ts=8
#
# SearchReplace -- Search and replace text in a file
#
# Written by Olaf `Olsen' Barthel <obarthel at gmx dot net>
# Public Domain
#

.c.o:
	sc $(CFLAGS) $<

###############################################################################

OPTIMIZE =	optimize opttime optschedule optdepth=10 optinlocal
DEBUG =		debug=line

CFLAGS =	params=r nostackcheck $(OPTIMIZE) $(DEBUG) cpu=any
LFLAGS =	smallcode noicons

OBJS =		SearchReplace.o

LIBS =		lib:sc.lib lib:amiga.lib lib:debug.lib

all:	SearchReplace

SearchReplace : $(OBJS)
	slink lib:c.o $(OBJS) to $@.debug lib $(LIBS) $(LFLAGS) addsym \
		map $@.map,fhx fwidth 32 pwidth 32 swidth 32 width 100
	slink $@.debug to $@ noicons nodebug

clean:
	-delete SearchReplace SearchReplace.debug $(OBJS) all quiet
